unit UCadEquipes;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Modelo, DB, DBTables, Grids, DBGrids, StdCtrls, Buttons,
  CheckLst, ExtCtrls, Mask, DBCtrls, UDPTOUteis;

type
  TFCadEquipe = class(TFModelo)
    qPadraoDESCEQUIPE: TStringField;
    qPadraoCODEQUIPE: TIntegerField;
    lbl1: TLabel;
    dbedt1: TDBEdit;
    lbl2: TLabel;
    dbedt2: TDBEdit;
    procedure qPadraoAfterInsert(DataSet: TDataSet);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FCadEquipe: TFCadEquipe;

implementation

{$R *.dfm}

procedure TFCadEquipe.qPadraoAfterInsert(DataSet: TDataSet);
begin
  inherited;
  qPadrao.FieldByName('CODEQUIPE').AsInteger := DPTOProximo('EQUIPE');
end;

end.
